#!/bin/bash

echo "Test Case 1: Testing 23/23..."

tc=`java -jar Grades_v2.jar 23 23`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Failed"
else 
  echo "Test Passed"
fi
echo "========================================================================"
echo "Test Case 1: Testing 40/40..."

tc=`java -jar Grades_v2.jar 40 40`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Failed"
else 
  echo "Test Passed"
fi
echo "========================================================================"
echo "Test Case 1: Testing 100/100..."

tc=`java -jar Grades_v2.jar 100 100`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Failed"
else 
  echo "Test Passed"
fi
echo "========================================================================"
echo "Test Case 1: Testing 0/0..."

tc=`java -jar Grades_v2.jar 0 0`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Failed"
else 
  echo "Test Passed"
fi
echo "========================================================================"
echo "Test Case 1: Testing 50/50..."

tc=`java -jar Grades_v2.jar 50 50`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Failed"
else 
  echo "Test Passed"
fi
echo "========================================================================"
